package com.xxx;

public class BankThread extends Thread{
    private Bank bank;
    public BankThread(Bank bank,String name){
        super(name);
        this.bank=bank;
    }
    @Override
    public void run() {
        while (true) {
            new BankMethod(bank).star();
        }

    }
}
